package com.zxb.base.task.enm;

import com.zxb.core.common.enums.BaseEnumService;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author Zxb
 */
@Component
public class TaskStateEnumServiceImpl implements BaseEnumService {

    @Override
    public List<String> getList() {
        return Arrays.stream(TaskStateEnum.values())
                .map(t -> t.name()).collect(Collectors.toList());
    }

    @Override
    public String getCode() {
        return "TaskStateEnum";
    }
}
